from src.domain.user.entities.allowed_ip import AllowedIpEntity
from src.infrastructure.db import models


def convert_allowed_ip_entity_to_db_model(allowed_ip: AllowedIpEntity) -> models.AllowedIP:
    return models.AllowedIP(ip_address=allowed_ip.ip_address, user_id=allowed_ip.user_id)
